package shop.services.front.activityJoin.dao.impl;

import org.springframework.stereotype.Repository;
import shop.core.common.dao.BaseDao;
import shop.core.common.dao.page.PagerModel;
import shop.services.front.activityJoin.bean.ActivityJoin;
import shop.services.front.activityJoin.dao.ActivityJoinDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/5/2.
 */
@Repository("activityJoinDaoFront")
public class ActivityJoinDaoImpl implements ActivityJoinDao {
    @Resource
    private BaseDao dao;
    public void setDao(BaseDao dao) {
        this.dao = dao;
    }

    public ActivityJoinDaoImpl() {
        super();
    }

    @Override
    public int insert(ActivityJoin activityJoin) {
        return dao.insert("front.activityJoin.insert",activityJoin);
    }

    @Override
    public int delete(ActivityJoin activityJoin) {
        return 0;
    }

    @Override
    public int update(ActivityJoin activityJoin) {
        return dao.update("front.activityJoin.update", activityJoin);
    }

    @Override
    public ActivityJoin selectOne(ActivityJoin activityJoin) {
        return null;
    }

    @Override
    public PagerModel selectPageList(ActivityJoin activityJoin) {
        return null;
    }

    @Override
    public List<ActivityJoin> selectList(ActivityJoin activityJoin) {
        return null;
    }

    @Override
    public int deleteById(int id) {
        return 0;
    }

    @Override
    public ActivityJoin selectById(String id) {
        return null;
    }

    @Override
    public int selectAmount(ActivityJoin activityJoin) {
        return (int) dao.selectOne("front.activityJoin.selectAmount", activityJoin);
    }
    @Override
    public List<ActivityJoin> selectListByAccount(ActivityJoin activityJoin) {
        return dao.selectList("front.activityJoin.selectListByAccount",activityJoin);
    }

}
